<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String pageIndex ;
	   pageIndex=request.getParameter("pageIndex");

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title><s:property value="title"/></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	
	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> 
    <link href="css/AeroWindow.css?r=123" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" href="css/lksMenuSkin.css" />
	<link rel="stylesheet" type="text/css" href="css/user_home.css" />
	
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> 
    <script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script> 
    <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>         
    <script type="text/javascript" src="js/jquery-AeroWindow.js"></script>
    <script type="text/javascript" src="js/jquery.lksMenu.js"></script>
	
	<script>
        $('document').ready(function(){
            $('.menu').lksMenu();
        });
        function checkLogout(){
        	if(!confirm(" 您确定要离开设计之路IT技术社区吗？ ")){
				return false;
			}
			else{
				return true;
			}
        }
    </script>

  </head>
  
  <body background="images/bg_img2.jpg" style="background-repeat: no-repeat; background-color: black;">
    <div>
    	<span class="reference">
    		<span style="color: white;">${user.account}的个人空间&nbsp;&nbsp;&nbsp;</span>
    		<s:a href="user_logout" onclick="return checkLogout()">注销</s:a>
    		<s:a href="#">SJZL首页</s:a>
    		<s:a href="#">业内资讯</s:a>
    		<s:a href="board_list">论坛首页</s:a>
    		<s:a href="#">博客</s:a>
    		<s:a href="#">下载</s:a>
    		<s:a href="#">图书馆</s:a>
    	</span>
	</div>
	
	<br/><br/><br/>
	<div style="width: 960px;; background-color: white; margin: auto; position: relative;">
	<!-- 菜单 begin -->
	<div class="menu" style="width: 250px; position: absolute; left: 0px; top: 0px; border: 2px solid;">
        <ul>
            <li>
                <a style="cursor: pointer;">个人信息</a>
                <ul>
                	<li><s:a href="user_myselfInfo?selectAccount=%{#session.sessionUser.account}">基本信息</s:a></li>
                	<li><s:a href="user_updateUserUI?selectAccount=%{#session.sessionUser.account}">修改资料</s:a></li>
                	<li><s:a href="user_releaseMoodUI?selectAccount=%{#session.sessionUser.account}">发布心情</s:a></li>
                    <li><s:a href="user_selectMessageUI?selectAccount=%{#session.sessionUser.account}">留言板</s:a></li>
                </ul>
            </li>
            <li>
                <a style="cursor: pointer;">我的好友</a>
                <ul>
                    <li><s:a href="user_myfriendUI?selectAccount=%{#session.sessionUser.account}">查看好友列表</s:a></li>
                    <li><a href="#">好友动态</a></li>
                </ul>
            </li>
            <li>
                <a style="cursor: pointer;">我的博客</a>
                <ul>
                    <li><a href="#">我的文章</a></li>
                    <li><a href="#">写文章</a></li>
                    <li><a href="#">我的相册</a></li>
                </ul>
            </li>
        </ul>
    </div>
	<!-- 菜单 end -->
	
	<!-- 主要内容 -->
	<div class="main_content">
		<br/>
			<div style="width: 95%; position: relative; margin: auto; border: 2px solid black;">
				<center>
				<span style="font-size: 16px;">查看我的留言板</span>
				</center>
				<table cellspacing="0" class="mytable">
					<tr>
						<th scope="col" style="width: 30px;">已读</th> 
						<th scope="col" style="width: 16%">作者</th>
						<th scope="col">相关内容</th>
					</tr>
					<s:iterator id="n" value="notifications">
					<tr>
						<td>
							<s:if test="#n.isNew == 1">
								<span style="color: red;">否</span>
							</s:if>
							<s:else>
								是
							</s:else>
						</td>
						<td><s:a href="user_selectUser?selectAccount=%{#n.userCreated}">${n.userCreated}</s:a></td>
						<td>
						创建时间：${n.dateCreated}
						<s:a href="user_selectMessage?n_id=%{#n.id}&selectAccount=%{#session.sessionUser.account}">查看内容</s:a>
						<s:a href="user_giveToMessageUI?selectAccount=%{#n.userCreated}">回复他（她）</s:a>
						<s:a href="user_deleteMessage?n_id=%{#n.id}&selectAccount=%{#session.sessionUser.account}">删除</s:a>
						</td>
					</tr>
					</s:iterator>
				</table>
			</div>
		<br/>
	</div>
	<!-- 主要内容  end-->
	</div>
	${smw}
	${warning}
	<s:include value="/bottom.jsp"></s:include>
  </body>
</html>
